<?php
// +----------------------------------------------------------------------
// | title: 标题注释
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/4/18 14:18
// +----------------------------------------------------------------------

return [
    "type" => "complex",
    "default" => [
        //默认缓存类型
        "type" => "Redis",
        //默认缓存前缀 游戏名_模块名
        "prefix" => GAME_NAME."_".APP_NAME.(defined("PLAT_SERVER_ID") ? "_".PLATFORM."_s".PLAT_SERVER_ID : "").":",
        //过期时间，0 永不过期
        "expire" => 0,
        "pool_size" => 10,
        "host" => "127.0.0.1",
        "port" => 8600,
    ],
    "file" => [
        //默认缓存类型
        "type" => "File",
        //默认缓存前缀 游戏名_模块名
        "prefix" => GAME_NAME."_".APP_NAME.(defined("PLAT_SERVER_ID") ? "_".PLATFORM."_s".PLAT_SERVER_ID : ""),
        //过期时间，0 永不过期
        "expire" => 0,
        "path" => CMF_ROOT.'runtime/'.GAME_NAME."_".APP_NAME."/cache/"
    ]
];